// 域名请求路径
const domainNameRequestPath = 'https://bootapi.51bmj.cn/bmj-api'
// Ip 请求路径
// const ipRequestPath = 'http://172.18.118.199:7002'
const ipRequestPath = 'http://47.115.5.251:7002'
// 正式服地址
const formalWearAddress = 'https://www.51bmj.cn'
// 正式服 AppId
const formalWearAppId = 'wxda141ae36aedc306'
// 正式服地址
const testWearAddress = 'http://web.51bmj.net'
// 测试服 AppId
const testWearAppId = 'wx0efacf82e40d21b5'
// 接口请求基础路径
const BASE_URL = process.server ? ipRequestPath : domainNameRequestPath
// 判断标识
const judgmentFalg = (BASE_URL === domainNameRequestPath || ipRequestPath)
// 回调地址
const CALL_BACK_URL = judgmentFalg ? formalWearAddress : testWearAddress
// AppId
const APP_ID = judgmentFalg ? formalWearAppId : testWearAppId
// console.log('-----------appId', APP_ID, BASE_URL, CALL_BACK_URL)
module.exports = {
  appId: APP_ID,
  baseUrl: BASE_URL,
  ssrBaseUrl: ipRequestPath,
  callBackUrl: CALL_BACK_URL
}
